<?php
class Origin{
	const STANDARD	= 0;
	const MM  		= 1;
	const VK  		= 2;
	const OK  		= 3;
	const FB  		= 4;
	const TW  		= 5;
	
	public static function getOrigin(){
		return ($_SESSION["origin"]) ? $_SESSION["origin"] : self::STANDARD;
	}
	
	public static function setOrigin($origin){
		$_SESSION["origin"] = $origin;
	}
	
	public static function get_sufix(){
		switch(core::$origin){
			case (Origin::MM):
			case (Origin::VK):
			/*case (Origin::VGORODE):*/
				return "_mm";
			break;
			
		}
	}
	
	
}


?>